# ! /usr/bin/env python
# coding=utf-8
'''
@author: fisher

@desc: UI控件定义

'''

from utility import base
import unittest

class Match(base.BaseTests):
    #解答按钮button：xpath
    answer_loc = u'(//XCUIElementTypeButton[@name="解答"])[1]'
    #第一个题目A选项
    A_loc = u'//XCUIElementTypeButton[@name="A"]'
    #考试首页底部进入考试按钮
    NextTi_loc = u'//XCUIElementTypeButton[@name="下一题"]'

    next_kong_loc = u'//XCUIElementTypeButton[@name="下一空"]'
    submit_btn_loc = u'//XCUIElementTypeButton[@name="完成提交"]'

    # 纯数字题
    choice_dot_loc = u'//XCUIElementTypeButton[@name="."]'
    choice_one_loc = u'//XCUIElementTypeButton[@name="1"]'
    # xyz+-*/和x方键盘
    Subtraction_btn_loc = u'//XCUIElementTypeButton[@name="-"]'
    Addition_btn_loc = u'//XCUIElementTypeButton[@name="+"]'
    novice_guide_loc = u'name CONTAINS "知道了"'






if __name__ == '__main__':
    test_suite = unittest.TestLoader().loadTestsFromTestCase(Match)
    unittest.TextTestRunner().run(test_suite)















